<?php include load_tpl('header');?>
<p id="breadcrumbs">
    <a href="/">首页</a> <b>»</b> 
    <span>反馈列表</span>
</p>

<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('./images/product.png');">反馈列表</h1>
  </div>
  <div class="content">
  <form id="form" enctype="multipart/form-data" method="post" action="">
      <table class="list">
        <thead>
          <tr style="background-color: rgb(244, 244, 248);">
			<td class="center">主题</td>
            <td class="center">姓名</td>
            <td class="left">电话</td>
            <td class="left">E-mail</td>
            <td class="left">公司名称</td>
			<td class="left">省份</td>
			<td class="left">详细地址</td>
            <td class="right">反馈内容</td>
            <td class="left">反馈时间</td>
            <td class="right">操作</td>
          </tr>
        </thead>
        <tbody>
		<?php if($fb_list){
				foreach($fb_list as $feedback){
		?>
		<tr>
			<td class="center"><?php echo $feedback['type'];?></td>
            <td class="center"><?php echo $feedback['name'];?></td>
            <td class="left"><?php echo $feedback['telphone'];?></td>
            <td class="left"><?php echo $feedback['email'];?></td>
            <td class="left"><?php echo $feedback['company'];?></td>
			<td class="left"><?php echo $feedback['province'];?></td>
			<td class="left"><?php echo $feedback['address'];?></td>
            <td class="right"><?php echo substr($feedback['content'],0,30);?></td>
            <td class="left"><?php echo $feedback['created'];?></td>
            <td class="right"><a class="button" href="index.php?mod=about&act=view_feedback&fb_id=<?php echo $feedback['id'];?>"><span>查看详细</span></a>
			<a class="button" href="index.php?mod=about&act=del_feedback&fb_id=<?php echo $feedback['id'];?>"><span>删除</span></a>
             </td>
          </tr>
		  <?php
				}
		  }else{
		?>
		<tr>
		<td colspan="10" style="height:26px;">没有任何反馈信息！</td>
        </tr>
		<?php } ?>
	 </tbody>
	 </table>
	 </form>
	 <div class="pages" id="pages"><?php if(isset($pages)) echo $pages;?></div>

  </div>
</div>

<?php include load_tpl('footer');?>